package com.qf.hospital.entity;

import java.util.ArrayList;
import java.util.List;

public class DoctorExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DoctorExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDoctorIdIsNull() {
            addCriterion("doctor_id is null");
            return (Criteria) this;
        }

        public Criteria andDoctorIdIsNotNull() {
            addCriterion("doctor_id is not null");
            return (Criteria) this;
        }

        public Criteria andDoctorIdEqualTo(Integer value) {
            addCriterion("doctor_id =", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdNotEqualTo(Integer value) {
            addCriterion("doctor_id <>", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdGreaterThan(Integer value) {
            addCriterion("doctor_id >", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("doctor_id >=", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdLessThan(Integer value) {
            addCriterion("doctor_id <", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdLessThanOrEqualTo(Integer value) {
            addCriterion("doctor_id <=", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdIn(List<Integer> values) {
            addCriterion("doctor_id in", values, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdNotIn(List<Integer> values) {
            addCriterion("doctor_id not in", values, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdBetween(Integer value1, Integer value2) {
            addCriterion("doctor_id between", value1, value2, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdNotBetween(Integer value1, Integer value2) {
            addCriterion("doctor_id not between", value1, value2, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorNameIsNull() {
            addCriterion("doctor_name is null");
            return (Criteria) this;
        }

        public Criteria andDoctorNameIsNotNull() {
            addCriterion("doctor_name is not null");
            return (Criteria) this;
        }

        public Criteria andDoctorNameEqualTo(String value) {
            addCriterion("doctor_name =", value, "doctorName");
            return (Criteria) this;
        }

        public Criteria andDoctorNameNotEqualTo(String value) {
            addCriterion("doctor_name <>", value, "doctorName");
            return (Criteria) this;
        }

        public Criteria andDoctorNameGreaterThan(String value) {
            addCriterion("doctor_name >", value, "doctorName");
            return (Criteria) this;
        }

        public Criteria andDoctorNameGreaterThanOrEqualTo(String value) {
            addCriterion("doctor_name >=", value, "doctorName");
            return (Criteria) this;
        }

        public Criteria andDoctorNameLessThan(String value) {
            addCriterion("doctor_name <", value, "doctorName");
            return (Criteria) this;
        }

        public Criteria andDoctorNameLessThanOrEqualTo(String value) {
            addCriterion("doctor_name <=", value, "doctorName");
            return (Criteria) this;
        }

        public Criteria andDoctorNameLike(String value) {
            addCriterion("doctor_name like", value, "doctorName");
            return (Criteria) this;
        }

        public Criteria andDoctorNameNotLike(String value) {
            addCriterion("doctor_name not like", value, "doctorName");
            return (Criteria) this;
        }

        public Criteria andDoctorNameIn(List<String> values) {
            addCriterion("doctor_name in", values, "doctorName");
            return (Criteria) this;
        }

        public Criteria andDoctorNameNotIn(List<String> values) {
            addCriterion("doctor_name not in", values, "doctorName");
            return (Criteria) this;
        }

        public Criteria andDoctorNameBetween(String value1, String value2) {
            addCriterion("doctor_name between", value1, value2, "doctorName");
            return (Criteria) this;
        }

        public Criteria andDoctorNameNotBetween(String value1, String value2) {
            addCriterion("doctor_name not between", value1, value2, "doctorName");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdIsNull() {
            addCriterion("department_id is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdIsNotNull() {
            addCriterion("department_id is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdEqualTo(Integer value) {
            addCriterion("department_id =", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdNotEqualTo(Integer value) {
            addCriterion("department_id <>", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdGreaterThan(Integer value) {
            addCriterion("department_id >", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("department_id >=", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdLessThan(Integer value) {
            addCriterion("department_id <", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdLessThanOrEqualTo(Integer value) {
            addCriterion("department_id <=", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdIn(List<Integer> values) {
            addCriterion("department_id in", values, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdNotIn(List<Integer> values) {
            addCriterion("department_id not in", values, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdBetween(Integer value1, Integer value2) {
            addCriterion("department_id between", value1, value2, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("department_id not between", value1, value2, "departmentId");
            return (Criteria) this;
        }

        public Criteria andRegisteredIdIsNull() {
            addCriterion("registered_id is null");
            return (Criteria) this;
        }

        public Criteria andRegisteredIdIsNotNull() {
            addCriterion("registered_id is not null");
            return (Criteria) this;
        }

        public Criteria andRegisteredIdEqualTo(Integer value) {
            addCriterion("registered_id =", value, "registeredId");
            return (Criteria) this;
        }

        public Criteria andRegisteredIdNotEqualTo(Integer value) {
            addCriterion("registered_id <>", value, "registeredId");
            return (Criteria) this;
        }

        public Criteria andRegisteredIdGreaterThan(Integer value) {
            addCriterion("registered_id >", value, "registeredId");
            return (Criteria) this;
        }

        public Criteria andRegisteredIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("registered_id >=", value, "registeredId");
            return (Criteria) this;
        }

        public Criteria andRegisteredIdLessThan(Integer value) {
            addCriterion("registered_id <", value, "registeredId");
            return (Criteria) this;
        }

        public Criteria andRegisteredIdLessThanOrEqualTo(Integer value) {
            addCriterion("registered_id <=", value, "registeredId");
            return (Criteria) this;
        }

        public Criteria andRegisteredIdIn(List<Integer> values) {
            addCriterion("registered_id in", values, "registeredId");
            return (Criteria) this;
        }

        public Criteria andRegisteredIdNotIn(List<Integer> values) {
            addCriterion("registered_id not in", values, "registeredId");
            return (Criteria) this;
        }

        public Criteria andRegisteredIdBetween(Integer value1, Integer value2) {
            addCriterion("registered_id between", value1, value2, "registeredId");
            return (Criteria) this;
        }

        public Criteria andRegisteredIdNotBetween(Integer value1, Integer value2) {
            addCriterion("registered_id not between", value1, value2, "registeredId");
            return (Criteria) this;
        }

        public Criteria andDstateIsNull() {
            addCriterion("dstate is null");
            return (Criteria) this;
        }

        public Criteria andDstateIsNotNull() {
            addCriterion("dstate is not null");
            return (Criteria) this;
        }

        public Criteria andDstateEqualTo(Integer value) {
            addCriterion("dstate =", value, "dstate");
            return (Criteria) this;
        }

        public Criteria andDstateNotEqualTo(Integer value) {
            addCriterion("dstate <>", value, "dstate");
            return (Criteria) this;
        }

        public Criteria andDstateGreaterThan(Integer value) {
            addCriterion("dstate >", value, "dstate");
            return (Criteria) this;
        }

        public Criteria andDstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("dstate >=", value, "dstate");
            return (Criteria) this;
        }

        public Criteria andDstateLessThan(Integer value) {
            addCriterion("dstate <", value, "dstate");
            return (Criteria) this;
        }

        public Criteria andDstateLessThanOrEqualTo(Integer value) {
            addCriterion("dstate <=", value, "dstate");
            return (Criteria) this;
        }

        public Criteria andDstateIn(List<Integer> values) {
            addCriterion("dstate in", values, "dstate");
            return (Criteria) this;
        }

        public Criteria andDstateNotIn(List<Integer> values) {
            addCriterion("dstate not in", values, "dstate");
            return (Criteria) this;
        }

        public Criteria andDstateBetween(Integer value1, Integer value2) {
            addCriterion("dstate between", value1, value2, "dstate");
            return (Criteria) this;
        }

        public Criteria andDstateNotBetween(Integer value1, Integer value2) {
            addCriterion("dstate not between", value1, value2, "dstate");
            return (Criteria) this;
        }

        public Criteria andAmStartTimeIsNull() {
            addCriterion("am_start_time is null");
            return (Criteria) this;
        }

        public Criteria andAmStartTimeIsNotNull() {
            addCriterion("am_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andAmStartTimeEqualTo(String value) {
            addCriterion("am_start_time =", value, "amStartTime");
            return (Criteria) this;
        }

        public Criteria andAmStartTimeNotEqualTo(String value) {
            addCriterion("am_start_time <>", value, "amStartTime");
            return (Criteria) this;
        }

        public Criteria andAmStartTimeGreaterThan(String value) {
            addCriterion("am_start_time >", value, "amStartTime");
            return (Criteria) this;
        }

        public Criteria andAmStartTimeGreaterThanOrEqualTo(String value) {
            addCriterion("am_start_time >=", value, "amStartTime");
            return (Criteria) this;
        }

        public Criteria andAmStartTimeLessThan(String value) {
            addCriterion("am_start_time <", value, "amStartTime");
            return (Criteria) this;
        }

        public Criteria andAmStartTimeLessThanOrEqualTo(String value) {
            addCriterion("am_start_time <=", value, "amStartTime");
            return (Criteria) this;
        }

        public Criteria andAmStartTimeLike(String value) {
            addCriterion("am_start_time like", value, "amStartTime");
            return (Criteria) this;
        }

        public Criteria andAmStartTimeNotLike(String value) {
            addCriterion("am_start_time not like", value, "amStartTime");
            return (Criteria) this;
        }

        public Criteria andAmStartTimeIn(List<String> values) {
            addCriterion("am_start_time in", values, "amStartTime");
            return (Criteria) this;
        }

        public Criteria andAmStartTimeNotIn(List<String> values) {
            addCriterion("am_start_time not in", values, "amStartTime");
            return (Criteria) this;
        }

        public Criteria andAmStartTimeBetween(String value1, String value2) {
            addCriterion("am_start_time between", value1, value2, "amStartTime");
            return (Criteria) this;
        }

        public Criteria andAmStartTimeNotBetween(String value1, String value2) {
            addCriterion("am_start_time not between", value1, value2, "amStartTime");
            return (Criteria) this;
        }

        public Criteria andAmEndTimeIsNull() {
            addCriterion("am_end_time is null");
            return (Criteria) this;
        }

        public Criteria andAmEndTimeIsNotNull() {
            addCriterion("am_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andAmEndTimeEqualTo(String value) {
            addCriterion("am_end_time =", value, "amEndTime");
            return (Criteria) this;
        }

        public Criteria andAmEndTimeNotEqualTo(String value) {
            addCriterion("am_end_time <>", value, "amEndTime");
            return (Criteria) this;
        }

        public Criteria andAmEndTimeGreaterThan(String value) {
            addCriterion("am_end_time >", value, "amEndTime");
            return (Criteria) this;
        }

        public Criteria andAmEndTimeGreaterThanOrEqualTo(String value) {
            addCriterion("am_end_time >=", value, "amEndTime");
            return (Criteria) this;
        }

        public Criteria andAmEndTimeLessThan(String value) {
            addCriterion("am_end_time <", value, "amEndTime");
            return (Criteria) this;
        }

        public Criteria andAmEndTimeLessThanOrEqualTo(String value) {
            addCriterion("am_end_time <=", value, "amEndTime");
            return (Criteria) this;
        }

        public Criteria andAmEndTimeLike(String value) {
            addCriterion("am_end_time like", value, "amEndTime");
            return (Criteria) this;
        }

        public Criteria andAmEndTimeNotLike(String value) {
            addCriterion("am_end_time not like", value, "amEndTime");
            return (Criteria) this;
        }

        public Criteria andAmEndTimeIn(List<String> values) {
            addCriterion("am_end_time in", values, "amEndTime");
            return (Criteria) this;
        }

        public Criteria andAmEndTimeNotIn(List<String> values) {
            addCriterion("am_end_time not in", values, "amEndTime");
            return (Criteria) this;
        }

        public Criteria andAmEndTimeBetween(String value1, String value2) {
            addCriterion("am_end_time between", value1, value2, "amEndTime");
            return (Criteria) this;
        }

        public Criteria andAmEndTimeNotBetween(String value1, String value2) {
            addCriterion("am_end_time not between", value1, value2, "amEndTime");
            return (Criteria) this;
        }

        public Criteria andPmStartTimeIsNull() {
            addCriterion("pm_start_time is null");
            return (Criteria) this;
        }

        public Criteria andPmStartTimeIsNotNull() {
            addCriterion("pm_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andPmStartTimeEqualTo(String value) {
            addCriterion("pm_start_time =", value, "pmStartTime");
            return (Criteria) this;
        }

        public Criteria andPmStartTimeNotEqualTo(String value) {
            addCriterion("pm_start_time <>", value, "pmStartTime");
            return (Criteria) this;
        }

        public Criteria andPmStartTimeGreaterThan(String value) {
            addCriterion("pm_start_time >", value, "pmStartTime");
            return (Criteria) this;
        }

        public Criteria andPmStartTimeGreaterThanOrEqualTo(String value) {
            addCriterion("pm_start_time >=", value, "pmStartTime");
            return (Criteria) this;
        }

        public Criteria andPmStartTimeLessThan(String value) {
            addCriterion("pm_start_time <", value, "pmStartTime");
            return (Criteria) this;
        }

        public Criteria andPmStartTimeLessThanOrEqualTo(String value) {
            addCriterion("pm_start_time <=", value, "pmStartTime");
            return (Criteria) this;
        }

        public Criteria andPmStartTimeLike(String value) {
            addCriterion("pm_start_time like", value, "pmStartTime");
            return (Criteria) this;
        }

        public Criteria andPmStartTimeNotLike(String value) {
            addCriterion("pm_start_time not like", value, "pmStartTime");
            return (Criteria) this;
        }

        public Criteria andPmStartTimeIn(List<String> values) {
            addCriterion("pm_start_time in", values, "pmStartTime");
            return (Criteria) this;
        }

        public Criteria andPmStartTimeNotIn(List<String> values) {
            addCriterion("pm_start_time not in", values, "pmStartTime");
            return (Criteria) this;
        }

        public Criteria andPmStartTimeBetween(String value1, String value2) {
            addCriterion("pm_start_time between", value1, value2, "pmStartTime");
            return (Criteria) this;
        }

        public Criteria andPmStartTimeNotBetween(String value1, String value2) {
            addCriterion("pm_start_time not between", value1, value2, "pmStartTime");
            return (Criteria) this;
        }

        public Criteria andPmEndTimeIsNull() {
            addCriterion("pm_end_time is null");
            return (Criteria) this;
        }

        public Criteria andPmEndTimeIsNotNull() {
            addCriterion("pm_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andPmEndTimeEqualTo(String value) {
            addCriterion("pm_end_time =", value, "pmEndTime");
            return (Criteria) this;
        }

        public Criteria andPmEndTimeNotEqualTo(String value) {
            addCriterion("pm_end_time <>", value, "pmEndTime");
            return (Criteria) this;
        }

        public Criteria andPmEndTimeGreaterThan(String value) {
            addCriterion("pm_end_time >", value, "pmEndTime");
            return (Criteria) this;
        }

        public Criteria andPmEndTimeGreaterThanOrEqualTo(String value) {
            addCriterion("pm_end_time >=", value, "pmEndTime");
            return (Criteria) this;
        }

        public Criteria andPmEndTimeLessThan(String value) {
            addCriterion("pm_end_time <", value, "pmEndTime");
            return (Criteria) this;
        }

        public Criteria andPmEndTimeLessThanOrEqualTo(String value) {
            addCriterion("pm_end_time <=", value, "pmEndTime");
            return (Criteria) this;
        }

        public Criteria andPmEndTimeLike(String value) {
            addCriterion("pm_end_time like", value, "pmEndTime");
            return (Criteria) this;
        }

        public Criteria andPmEndTimeNotLike(String value) {
            addCriterion("pm_end_time not like", value, "pmEndTime");
            return (Criteria) this;
        }

        public Criteria andPmEndTimeIn(List<String> values) {
            addCriterion("pm_end_time in", values, "pmEndTime");
            return (Criteria) this;
        }

        public Criteria andPmEndTimeNotIn(List<String> values) {
            addCriterion("pm_end_time not in", values, "pmEndTime");
            return (Criteria) this;
        }

        public Criteria andPmEndTimeBetween(String value1, String value2) {
            addCriterion("pm_end_time between", value1, value2, "pmEndTime");
            return (Criteria) this;
        }

        public Criteria andPmEndTimeNotBetween(String value1, String value2) {
            addCriterion("pm_end_time not between", value1, value2, "pmEndTime");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}